package com.sd.ws;

import com.alibaba.fastjson.JSONObject;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.URI;

public abstract class MyWebSocketClient extends WebSocketClient {
    private String agentId;
    /**
     * 构造器
     * @param serverUri 服务器地址
     * @param agentId 坐席id
     */
    public MyWebSocketClient(URI serverUri,String agentId){
        super(serverUri);
        this.agentId  = agentId;
    }
    /**
     * 获取坐席id
     * @return
     */
    public String getAgentId(){
        return this.agentId;
    }
}
